package com.sise.wangzhan;

import com.netflix.loadbalancer.IPing;
import com.netflix.loadbalancer.Server;

/**
 * @Classname MyPing
 * @Description TODO    自定义Ping
 * @Date 2020/4/2 9:58
 * @Created by wangzhan
 */
public class MyPing implements IPing {

    @Override
    public boolean isAlive(Server server){
        //不做处理，直接返回true
        System.out.println("This is my Ping class:"+server.getHostPort());
        return true;
    }
}
